package com.ws.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.ws.bean.MailRequest;
import com.ws.bean.User;
import com.ws.util.Page;

@Mapper
public interface UserDao {

	List<User> getUserByUsername(String username);

	List<User> getUser(@Param("user") User user,@Param("page") Page page);

	int getCount(@Param("user") User user);

	int delUser(Integer id);

	int editUser(@Param("user")User user);

	int addUser(@Param("user")User user);

	int editPassword(User user);

	void setUser(MailRequest mailRequest);

}
